package com.shi.vueblog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author stone
 * @since 2020-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long commentId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论人员id
     */
    @TableField("userId")
    private Long userId;

    /**
     * 点赞数量
     */
    private Integer likeNum;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private Long blogId;


}
